package com.pet.server.ext.service;

import java.util.List;

import com.pet.server.ext.ApiError;

import com.pet.server.ext.data.Constant;
import com.pet.server.ext.dbutil.JdbcTemplate;
import com.pet.server.ext.dbutil.Sql;


public class SystemService {
	private JdbcTemplate jdbcTemplate = new JdbcTemplate();

	public List<Constant> queryConstant() throws ApiError{
		Sql sql = new Sql("SELECT c.* FROM constant c WHERE 1=1");
		    return jdbcTemplate.queryForList(sql, Constant.class);
	}
	
	
}
